<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<title></title>
</head>
<style>
	body{
		background-image:url(../img/dahai.jpg) ;
		text-align: center;
	}
	div{
		width: 400px;
		height: 400px;
		margin: 100px auto;
	}

</style>
<h1>这是测试页面2</h1>
<form>
<h2>登录测试</h2>
<h3>~欢迎您，尊敬的大帅比~</h3>
<form  action='#' method="get" accept-charset="UTF-8">
	<span>账号：</span><input name='username'placeholder="请输入您的账号"/></br></br>
	<span>密码：</span><input name='password' type='password'show-password placeholder="请输入您的密码"/></br></br>
	<input type="button" value="注册"/>
</form>
<body>
	
	
	<script>
		$('input:button').click(function(){
			
			$.ajax({
				url:'http://127.0.0.1:8000/register',
				data:$('form').serialize(),
				success:function(data){
						 console.log(data)
						
				}
			})
		})
		
	</script>
</body>
</html>
